package com.iweb.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * AnnotationHelloServlet
 */
@WebServlet(value = "/hello2")
public class AnnotationHelloServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        PrintWriter write = resp.getWriter();
        write.append("hello world by Annotation.");
        write.close();
        System.out.println("1111111111111111111111111112");
        super.service(req, resp);
    }

    
}